#include <iostream>
#include "FileOptWithPoint.h"

using namespace std;
using namespace FileOptSpace;

int main() {
    FileOptWithPoint fileObj("example.txt", "r+");
    vector<char> readBuf;
    vector<char> writeBuf;
    const uint32_t length = 32;
    readBuf.reserve(length);
    fileObj.s_read(readBuf,length);
    readBuf.push_back('T');
    readBuf.push_back('E');
    readBuf.push_back('S');
    readBuf.push_back('T');
    readBuf.push_back(0);
    fileObj.s_write(readBuf, readBuf.capacity());
    for(uint32_t i = 0; i < length; ++i) {
        cout << readBuf[i];
    }
    cout << endl;
    return 0;
}